

var geolocation = new BMap.Geolocation();
var point = {
    lng: "0.00",
    lat: "0.00"
};
geolocation.getCurrentPosition(function(r) {
    if (this.getStatus() == BMAP_STATUS_SUCCESS) {
        console.log('您的位置：' + r.point.lng + ',' + r.point.lat);
        point = r.point;
        $.publish("baiduGetPointEnd");
    }/* else {
        alert('failed' + this.getStatus());
    }*/
}, {
    enableHighAccuracy: true
});

function getPoint() {
    return point;
}


module.exports = {
    getPoint: getPoint
};